// 用户 users
var mongoose = require('mongoose');

//定义数据结构 admins
const usersSchema = new mongoose.Schema({
    userName:String,//账号
    userPassword:String,//密码
    phone:String,//电话号码
    petName:String,//昵称
    name:String, //真实姓名
    vipCard:[String],//会员卡
    headImg:String,//头像
    address:[String],//送货地址
    address:String,//区域
    points:String,//积分
    havePet:[{}],//拥有的宠物
});

mongoose.model("users", usersSchema, "users");